package com.itheima.test16;

public class Student extends Person {
    private String id;

    public Student(String id, int i) {
        this.id = id;
    }

    public Student(String name, int age, String id) {
        super(name, age);
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public void work() {

    }

    @Override
    public String toString() {
        return "Student{" + "name='" + getName() + '\'' +
                ", age=" + getAge() + '\'' +
                ",id='" + id + '\'' +
                '}';
    }
}
